
app:registClass("WorldBossController", "app.boss.controllers.WorldBossController")
app:registClass("SummonBossController", "app.boss.controllers.SummonBossController")
app:registClass("GoddessWishController", "app.boss.controllers.GoddessWishController")
app:registClass("BossRankController", "app.boss.controllers.BossRankController")

app:registInst(import(".models.BossModel").new())

app:registInst(app:getClass("WorldBossController").new({type="systemUI"}))
app:registInst(app:getClass("SummonBossController").new({type="systemUI"}))
app:registInst(app:getClass("GoddessWishController").new({type="systemUI"}))
app:registInst(app:getClass("BossRankController").new({type="systemUI"}))


app.session:on("pb_worldboss.S2C_WorldBossNotify", function(msg)
	print("S2C_WorldBossNotify")
	app:sendMsg("BossModel", "onWorldBossNotify", msg)
end)

app.session:on("pb_worldboss.S2C_WorldBossInfo", function(msg)
    print("S2C_WorldBossInfo")
    app:sendMsg("BossModel", "onWorldBossInfo", msg)
end)

app.session:on("pb_goddessbless.S2C_UpdateNotify", function(msg)
	print("S2C_UpdateNotify")
	app:sendMsg("BossModel", "onNotifyGoddessInfo", msg)
end)

app.session:on("pb_goddessbless.S2C_MysteriousReward", function(msg)
	print("S2C_MysteriousReward")
	app:sendMsg("BossModel", "onNotifyMysteryReward", msg)
end)

